using UnityEngine;
using System.Collections;

public class RechargingJob : BuildingOperationJob {
	
	public RechargingJob(BoilerManager nBoiler):base((int) nBoiler.transform.position.x, (int) nBoiler.transform.position.y, (int) nBoiler.transform.position.z){
		this.jobType = 7;
	}
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	public bool workOn(Robot robot){
		bool isDone = base.workOn(1, robot);
		if (isDone){
			Debug.Log("Yup");
			robot.pressureInTank = robot.tank.maxPressure;
		}
		return isDone;
	}

	
}
